//package com.qf.config;
//
//import com.qf.interceptor.AuthInterceptor;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Component;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
//@Component
//public class MyInterceptorConfig implements WebMvcConfigurer {
//
//
//
//    @Autowired
//    private AuthInterceptor authInterceptor;
//
//    // 向容器注册拦截器
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//
//        // 拦截所有请求,除了/session/**
//
//        registry.addInterceptor(authInterceptor).addPathPatterns("/**")
//                .excludePathPatterns("/user/login","/user/register","/user/logout");
//
//    }
//}
